<template>
    <div class="check-box-root">
        <span class="check-box-img" :class="{active:select}"></span>
        <span><slot></slot></span>
    </div>
</template>

<script>
    export default {
        name: "check-box",
        props:['select'],
    }
</script>

<style scoped>
.check-box-root{
    padding: 5px;
    height: 30px;
}
.check-box-root>span:nth-of-type(2){
    line-height: 30px;
    padding-left: 5px;
}
.check-box-img {
    position: relative;
    top: 2px;
    display: inline-block;
    width: 16px;
    height: 16px;
    background: url("../assets/check-box-no.png");
}
.check-box-img.active {
    background: url("../assets/check-box-yes.png");
}
</style>
